﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class CookRobot:Robot
    {
        enum menu { 辣椒炒肉,西红柿炒蛋,蒸蛋}
        public override void Working(string robotname)
        {
            Console.WriteLine("你好，我是{0}", robotname);
            Console.WriteLine("请选择要做得菜 0.辣椒炒肉  1.西红柿炒蛋  2.蒸蛋");
            int num = int.Parse(Console.ReadLine());
            switch (num)
            {
                case (int)menu.辣椒炒肉:
                    Console.WriteLine("正在做辣椒炒肉");
                    break;
                case (int)menu.西红柿炒蛋:
                    Console.WriteLine("正在做辣椒炒肉");
                    break;
                case (int)menu.蒸蛋:
                    Console.WriteLine("正在做辣椒炒肉");
                    break;
                default:
                    break;
            }
        }
    }
}
